package main

import (
    "crypto/hmac"
    "crypto/sha256"
    "fmt"
)

func genSignature(partnerid string, secret string, millistimestamp string) string {
    key := []byte(secret)
    h := hmac.New(sha256.New, key)
    h.Write([]byte(partnerid + millistimestamp))
    signature :=  fmt.Sprintf("%x", (h.Sum(nil)))
    return signature
}

func main() {
    fmt.Println(genSignature("50000073", "dde4b49744db12c157111630a5237d76", "1575445371925"))
}
